<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<%@ include file="/WEB-INF/jsp/inc/taglibs.jsp"%>
		<%@ include file="/WEB-INF/jsp/inc/meta.jsp"%>
	</head>
	<body style="background: #E8F5FE; padding: 15px 18px;" class="scroll_r">
				
				<div id="right_w">
			<p>
				当前位置：任务管理
			</p>
		</div>
		<table border="0" cellpadding="0" cellspacing="1" width="92%" align="center" id="add_tab">	
			<tr><td colspan="10" style="text-align: left"><button class="but" onclick="location.href='${approot}/admin/apply/task_to_mod/add/0'">新建任务单</button></td></tr>
			</table>
<c:choose>
<c:when test="${fn:length(page.items)<1}">
<div align="center"><font color='red'>对不起,暂时没有找到符合条件的数据!</font></div>
</c:when>
<c:otherwise> 		
				<table border="0" cellpadding="" cellspacing="1" align="center"
					width="92%" id="web_tab">
					<tr>
						<th>
							区域地址
						</th>
						<th>
							经办人
						</th>
						<th>
							下单时间
						</th>
						<th>
							业务受理人
						</th>
						<th>
							施工受理人
						</th>
						<th>
							操作
						</th>
					</tr>
				<c:forEach var="task" items="${page.items}">
					<tr>
						<td>${task.address}</td>
						<td>${task.jingbanUser}</td>
						<td>${task.createDate}</td>
						<td>${task.yewuShouli}</td>
						<td>${task.shigongShouli}</td>
						<td>
							<a>详细</a>
							<a>处理</a>
							<a href="${approot}/admin/apply/task_to_mod/update/${task.taskId}">修改</a>
							<a>删除</a>
						</td>
					</tr>
				</c:forEach>
					
					
				</table>

				<table border="0" cellpadding="0" cellspacing="1" width="92%"
					align="center">
					<tr>
						<td align="left">
							共有
							<font color='red'>${page.totalCount}</font> 条记录，当前第
							<font color='red'>${page.currentPage}</font>页，共
							<font color='red'>${page.pageCount}</font>页
						</td>
						<td align="right">
							转到
							<select name="topage" id="topage" onchange="window.location.href='${approot}/admin/apply/task_list/page/' + this.value">
								<c:forEach var="ind" items="${page.pages}">
									<option value="${(ind-1)*page.pageSize}"
										<c:if test="${ind==page.currentPage}">selected="selected"</c:if>>
										${ind}
									</option>
								</c:forEach>
							</select>
							<button class="but"
								onclick="window.location.href='${approot}/admin/apply/task_list/page/${page.firstIndex}'">
								首页
							</button>
							<button class="but"
								onclick="window.location.href='${approot}/admin/apply/task_list/page/${page.previousIndex}'">
								上一页
							</button>
							<c:forEach items="${page.showpages}" var="ind">
								<c:if test="${ind!=0}">
									<a
										href="${approot}/admin/apply/task_list/page/${(ind-1)*page.pageSize}">${ind}</a>
								</c:if>
							</c:forEach>
							<button class="but"
								onclick="window.location.href='${approot}/admin/apply/task_list/page/${page.nextIndex}'">
								下一页
							</button>
							<button class="but"
								onclick="window.location.href='${approot}/admin/apply/task_list/page/${page.lastIndex}'">
								末页
							</button>
						</td>
					</tr>
				</table>
				</c:otherwise>
</c:choose>
	</body>
</html>
